package org.dromara.wms.domain.vo;

import java.math.BigDecimal;
import org.dromara.wms.domain.WmsProduct;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 产品管理视图对象 wms_product
 *
 * @author wenrui
 * @date 2024-03-20
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = WmsProduct.class)
public class WmsProductVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 产品子id
     */
    @ExcelProperty(value = "产品子id")
    private Long id;

    /**
     * 产品编码
     */
    @ExcelProperty(value = "产品编码")
    private String sku;

    /**
     * 产品名称
     */
    @ExcelProperty(value = "产品名称")
    private String name;

    /**
     * 产品规格
     */
    @ExcelProperty(value = "产品规格")
    private String specification;

    /**
     * 包装单位
     */
    @ExcelProperty(value = "包装单位")
    private String packingUnit;

    /**
     * 计量单位
     */
    @ExcelProperty(value = "计量单位")
    private String measureUnit;

    /**
     * 包装数量
     */
    @ExcelProperty(value = "包装数量")
    private String packingQuantity;

    /**
     * 价格
     */
    @ExcelProperty(value = "价格")
    private BigDecimal price;

    /**
     * 采购价
     */
    @ExcelProperty(value = "采购价")
    private BigDecimal purchasePrice;

    /**
     * 类别
     */
    @ExcelProperty(value = "类别")
    private String treeValue;

    /**
     * 产品属性
     */
    @ExcelProperty(value = "产品属性")
    private String attrValue;

    /**
     * 产品状态
     */
    @ExcelProperty(value = "产品状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_status")
    private String status;

    /**
     * 是否库存
     */
    @ExcelProperty(value = "是否库存")
    private String isStock;

    /**
     * 可否销售
     */
    @ExcelProperty(value = "可否销售")
    private String isSales;

    /**
     * 可否采购
     */
    @ExcelProperty(value = "可否采购")
    private String isPurchase;

    /**
     * 可否生产
     */
    @ExcelProperty(value = "可否生产")
    private String isProduce;

    /**
     * 是否物料
     */
    @ExcelProperty(value = "是否物料")
    private String isMaterial;

    /**
     * 委外加工
     */
    @ExcelProperty(value = "委外加工")
    private String isOutsource;

    /**
     * 最低库存
     */
    @ExcelProperty(value = "最低库存")
    private BigDecimal minStock;

    /**
     * 最大库存
     */
    @ExcelProperty(value = "最大库存")
    private BigDecimal maxStock;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
